package com.xianyu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.session.config.annotation.web.http.EnableSpringHttpSession;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableRedisHttpSession
@EnableCaching //开启缓存
@EnableAsync  //开启异步，创建线程池，异步操作
@EnableTransactionManagement //开启事务支持
@SpringBootApplication
public class XianyuApplication {

	public static void main(String[] args) {
		SpringApplication.run(XianyuApplication.class, args);
	}

}
